import { http } from '@/utils/request'

const rezRouteURL = '/api/rez'

export function apiFindReservation(data) {
    const {page,pageSize,start_time,end_time,status} = data
    return http.post(rezRouteURL+`/findAll?page=${page}&&pageSize=${pageSize}`, {start_time,end_time,status})
}

export function apiGetReservationCountsByWeek(data) {
    const {start_time,end_time} = data
    return http.post(rezRouteURL+`/getReservationCountsByWeek`, {start_time,end_time})
}
